s = input("输入:")
def f(x):
    if x == -1: 
        return ''
    else:      
        return s[x] + f(x-1)
print (f(len(s)- 1))
